package com.example.environment;

import com.example.base.BaseEntity;
import com.fasterxml.jackson.annotation.JsonBackReference;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import lombok.Getter;
import lombok.Setter;

import javax.persistence.Entity;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;
import java.io.Serializable;

/**
 * @author wangbin
 */
@Getter
@Setter
@Entity
@Table(name = "t_environment_database")
public class EnvironmentDatabase extends BaseEntity implements Serializable {

    private static final long serialVersionUID = 6961235580421550245L;

    private String name;

    @ManyToOne
    @JoinColumn(name = "environment_id")
    private Environment environment;

}
